import request from '@/utils/request'

export default {
  // 列表数据
  query(data) {
    return request({
      url: '/v1/product/product/list',
      method: 'post',
      data
    })
  },
  // 分类数据
  getClassifyOption() {
    return request({
      url: '/base/backend-classification/get-list',
      method: 'get'
    })
  },
  // 币种
  getCurrency(params) {
    return request({
      url: '/base/currency/get-list',
      method: 'get',
      params
    })
  },
  // 币种 -新接口
  getCurrencyNew(params) {
    return request({
      url: '/api/goods/get-currency',
      method: 'get',
      params
    })
  },
  // 详情
  getDetail(data) {
    return request({
      url: '/v1/product/product/detail',
      method: 'post',
      data
    })
  },
  // 采集
  gathering(data) {
    return request({
      url: '/v1/product/product/gathering',
      method: 'post',
      data
    })
  },
  // 添加
  add(data) {
    return request({
      url: '/v1/product/product/create',
      method: 'post',
      data
    })
  },
  // 编辑
  update(data) {
    return request({
      url: '/v1/product/product/edit',
      method: 'post',
      data
    })
  },
  // 删除
  del(data) {
    return request({
      url: '/v1/product/product/delete',
      method: 'post',
      data
    })
  },
  // 复制
  copy(data) {
    return request({
      url: '/v1/product/product/copy',
      method: 'post',
      data
    })
  },
  // 提交审核
  submitReview(data) {
    return request({
      url: '/v1/product/product/submit-review',
      method: 'post',
      data
    })
  },
  // 审核
  review(data) {
    return request({
      url: '/v1/product/product/review',
      method: 'post',
      data
    })
  },
   // 日志
   log(data) {
    return request({
      url: '/v1/product/log/list',
      method: 'post',
      data
    })
  },
  //运营审核
  operationReview(data) {
    return request({
      url: '/v1/product/operation-check',
      method: 'post',
      data
    })
  },
  //运营审核列表数据
  operationReviewList(data) {
    return request({
      url: '/v1/product/operation-check-list',
      method: 'post',
      data
    })
  },
  //撤回
  withdraw(data) {
    return request({
      url: '/v1/product/cancel-check',
      method: 'post',
      data
    })
  },
  productImport(data) {
    return request({
      url: '/v1/product/product/import',
      method: 'post',
      data
    })
  },
  acquireChannel(data) {
    return request({
      baseURL: window.APP_GETEWAY.tms,
      url: '/opts/channel',
      method: 'post',
      data
    })
  },
  submitOperation(data) {
    return request({
      url: '/v1/product/product/submit-operation',
      method: 'post',
      data
    })
  },
  getCountryList(params) {
    return request({
      url: '/base/country/get-list',
      method: 'get',
      params
    })
  },

}
